$(function(){
	$('table td input').blur(function(){
		if($(this).is('#password')){
			if(this.value != "" && this.value.length != 0){
				var reg = /^[A-Za-z0-9]{3,16}$/;
				if( !reg.test(this.value)){
					var errorMsg = "<font color='red'>输入不合法，请重新输入</font>";
					$('#span_pwd').html(errorMsg);
				}
				else{
					var okMsg = '';
					$('#span_pwd').text(okMsg);
				}
			}else{
				var errorMsg = "<font color='red'>必填项不能为空</font>";
				$('#span_pwd').html(errorMsg);
			}
		}
	}).keyup(function(){
		$(this).triggerHandler("blur");
	}).focus(function(){
		$(this).triggerHandler("blur");
	});
});